import type { Metadata } from 'next'; import Link from 'next/link'; import { notFound } from 'next/navigation'; import { LargestGrid, MonthStrip, TopEvents, TopLists } from '@/components/history/HistoryViews'; import { Section } from '@/components/ui/primitives'; import { apiGet } from '@/lib/api'; import type { HistorySummary } from '@/lib/types'; export const dynamic = 'force-dynamic'; type Params = Promise<{ year: string }>; export async function generateMetadata({ params }: { params: Params }): Promise { const { year } = await params; return { title: `History ${year}`, description: `Global Internet Pressure in ${year}: months, largest events, most affected networks and regions.` }; } export default async function HistoryYearPage({ params }: { params: Params }) { const { year } = await params; if (!/^\d{4}$/.test(year)) notFound(); const s = await apiGet(`/api/v1/history/summary?year=${year}`); return (

History {' '} ยท year

{year}

); }